package com.gz.moreaseManager.modules.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合作内容信息
 * </p>
 *
 * @author wike
 * @since 2019-02-26
 */
@Data
@Accessors(chain = true)
public class Content extends Model<Content> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 类别
     */
    private Integer type;

    /**
     * 封面图片路径
     */
    private String url;

    /**
     * 封面图片对应的base64码
     */
    @TableField(exist = false)
    private String uploadImg;

    /**
     * 状态：0：不显示,1：显示,2:置顶
     */
    private Integer status;

    /**
     * 内容富文本
     */
    @TableField("content_text")
    private String contentText;

    @TableField("create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField("create_person")
    private String createPerson;

    /**
     * 浮动广告路径
     */
    @TableField("advert_url")
    private String advertUrl;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
